package withdrawalsetting

type WithdrawalSetting struct {
	Id           int   `gorm:"column:id" json:"id"`                       // 主键
	IsOpen       int   `gorm:"column:is_open" json:"isOpen"`              // 是否开启提现 开启  1 关闭 2
	TaxPoint     int   `gorm:"column:tax_point" json:"taxPoint"`          // 提现税点
	MinMoney     int64 `gorm:"column:min_money" json:"minMoney"`          // 最小提现金额
	MaxMoney     int64 `gorm:"column:max_money" json:"maxMoney"`          // 最大提现金额
	DayMaxMoney  int64 `gorm:"column:day_max_money" json:"dayMaxMoney"`   // 日提现限额
	DayNumber    int   `gorm:"column:day_number" json:"dayNumber"`        // 日提现次数
	AutoMaxMoney int   `gorm:"column:auto_max_money" json:"autoMaxMoney"` // 自动审核金额
	Type         int   `gorm:"column:type" json:"type"`                   // 用户类型 代理商 1  商户 2
}

// model init
func New() *WithdrawalSetting {
	return &WithdrawalSetting{}
}

// TableName
func (m *WithdrawalSetting) TableName() string {
	return "withdrawal_setting"
}

func (m *WithdrawalSetting) Mutate(attrs ...WithdrawalLogAttr) *WithdrawalSetting {
	WithdrawalLogAttrs(attrs).Apply(m)
	return m
}
